How can I calculate percentage values in SQL using GROUP BY and COUNT